package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationSafetyCardDao;
import com.site.wisdom_construction.entity.personnelModule.EducationSafetyCard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/20
 * @Description
 */
@Service
public class EducationSafetyCardService implements EducationSafetyCardDao {
    @Autowired
    private EducationSafetyCardDao educationSafetyCardDao;

    @Override
    public int insertEducationSafetyCard(Map map) {
        return educationSafetyCardDao.insertEducationSafetyCard(map);
    }

    @Override
    public int deleteEducationSafetyCard(Map map) {
        return educationSafetyCardDao.deleteEducationSafetyCard(map);
    }

    @Override
    public int updateEducationSafetyCard(Map map) {
        return educationSafetyCardDao.updateEducationSafetyCard(map);
    }

    @Override
    public List<EducationSafetyCard> findEducationSafetyCardByPage(Map map) {
        return educationSafetyCardDao.findEducationSafetyCardByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationSafetyCardDao.Total(map);
    }

    @Override
    public EducationSafetyCard findEducationSafetyCardByEducationProfessionId(Map map) {
        return educationSafetyCardDao.findEducationSafetyCardByEducationProfessionId(map);
    }
}
